const list = require('./list/index')
const counterList = require('./counterlist/index')
const counterHandle = require('./counterhandle/index')
const nameList = require('./namelist/index')
const upScore = require('./upscore/index')
const maxNum = require('./maxnum/index')
// 云函数入口函数
exports.main = async (event, context) => {
  console.log(event)
  switch (event.type) {
    case 'list':
      return await list.main(event, context)
    case 'counterList':
      return await counterList.main(event, context)
    case 'nameList':
      return await nameList.main(event, context)
    case 'counterHandle':
      return await counterHandle.main(event, context)
    case 'upScore':
      return await upScore.main(event, context)
    case 'getMaxNum':
      return await maxNum.main(event, context)
  }
}